<template >
<el-menu>
    <template v-for="d in data">
        <resub :data="d" :key="d.id"></resub>
    </template>
</el-menu>
</template>

<script>

import ElMenu from "./el-menu.vue";
import Resub from './resub.vue'
export default {
  name: "MyMenu",
  data() {
    return {
      data: this.$props.tree,
    };
  },
  props: {
    tree: {
      type: Array,
      default: [],
    },
  },
  mounted() {
    // console.log(this.$props.tree)
    // console.log(this.tree)
    // console.log(this.data)
  },
  components: {
    // Level

    ElMenu,
    Resub
  },
};
</script>